<?php
namespace Ps\Api;
use Sns\Api\User as SnsApiUser;
use Ps\Domain\User as PsDomainUser;
/**
 * sns库->user表 用户模块接口服务
 */
class User extends SnsApiUser {
   /**
    * 获取用户信息
    * @desc 根据用户id获取用户信息
    * @return JSON userInfo 用户信息
    */
    public function getUserInfo() {
   	   $domain = new PsDomainUser();
   	   $userInfo = $domain->getUserInfo();
       //var_dump($userInfo);
       return array('id' => $userInfo['id'],'name' => $userInfo['username']);
    }
    
} 
